<!DOCTYPE html>

<html lang="en">

<head>
<title>Translation Bookmarklet</title>
<meta charset="utf-8" />
</head>

<body>
<h1>Translation Bookmarklet (Beta)</h1>

<h3>Installation</h3>
<p>
1) Select your native language:
<select onchange="javascript: var l=document.getElementById('link'); l.href=l.href.replace(/TO='[a-zA-Z]+'/gi,'TO=\''+this.options[this.selectedIndex].value+'\'');" name="page_lang"><option value="en">Select language</option><option value="af">Afrikaans</option><option value="sq">Albanian</option><option value="ar">Arabic</option><option value="hy">Armenian</option><option value="az">Azerbaijani</option><option value="eu">Basque</option><option value="be">Belarusian</option><option value="bg">Bulgarian</option><option value="ca">Catalan</option><option value="zh-CN">Chinese (Simplified)</option><option value="zh-TW">Chinese (Traditional)</option><option value="hr">Croatian</option><option value="cs">Czech</option><option value="da">Danish</option><option value="nl">Dutch</option><option selected="true" value="en">English</option><option value="et">Estonian</option><option value="tl">Filipino</option><option value="fi">Finnish</option><option value="fr">French</option><option value="gl">Galician</option><option value="ka">Georgian</option><option value="de">German</option><option value="el">Greek</option><option value="ht">Haitian Creole</option><option value="iw">Hebrew</option><option value="hi">Hindi</option><option value="hu">Hungarian</option><option value="is">Icelandic</option><option value="id">Indonesian</option><option value="ga">Irish</option><option value="it">Italian</option><option value="ja">Japanese</option><option value="ko">Korean</option><option value="la">Latin</option><option value="lv">Latvian</option><option value="lt">Lithuanian</option><option value="mk">Macedonian</option><option value="ms">Malay</option><option value="mt">Maltese</option><option value="no">Norwegian</option><option value="fa">Persian</option><option value="pl">Polish</option><option value="pt">Portuguese</option><option value="ro">Romanian</option><option value="ru">Russian</option><option value="sr">Serbian</option><option value="sk">Slovak</option><option value="sl">Slovenian</option><option value="es">Spanish</option><option value="sw">Swahili</option><option value="sv">Swedish</option><option value="th">Thai</option><option value="tr">Turkish</option><option value="uk">Ukrainian</option><option value="ur">Urdu</option><option value="vi">Vietnamese</option><option value="cy">Welsh</option><option value="yi">Yiddish</option></select>
</p>
<p>
2) <a id="link" href="javascript:(function(){ window._TRANSLATE_TO='en';if(typeof(TransBooklet)=='undefined'){document.body.appendChild(document.createElement('script')).src='http://www.leif.fi/bookmarklets/translate-bookmarklet.js';}else{TransBooklet.show();}})();">Translate</a>
&nbsp;&lt;&lt;-- Drag this link into your bookmarks bar, or right click and Add to Favorites Bar
</p>

<h3>Usage</h3>
Select text on any page, and click the "Translate" bookmark link. <br/>
The bookmarklet attempts to auto-detect the language from your selection, pops up a 
floating resizable drag & drop window,  and translates the text into a language 
of your choice.
You can also manually copy & paste the text into the source textarea, and change the source and 
translation language.

<h3>Requirements</h3>
A valid browser; newest version of Chrome, Firefox, Opera, Safari, or IE 7+

<h3> 
<h3>Known issues</h3>
<ul>
<li>The Bookmarklet doesn't work on pages using framesets</li>
<li>Depending on the CSS used on various pages, the bookmarklet might look a bit strange</li>
<li>Depending on the JavaScript used on various pages, the bookmarklet might not work as expected, 
or not work at all (especially pages using ExtJS)</li>
<li>Text selection might not work on all pages (ex. hotmail, gmail). In this case copy & paste the text manually</li>
<li>The bookmarklet loads dynamically quite an amount of resources (650 kB) from various locations. 
If some of the resources fail to load, the bookmarklet might look strange, or it may not work at all</li>
<li>IE: On some pages, won't work at all (ex. baidu.com)</li>
</ul>

<h3>Credits</h3>
<ul>
<li><a href="http://code.google.com/apis/language/">Google Language API</a></li>
<li><a href="http://www.sencha.com/products/js/">ExtJS</a></li>
<li><a href="http://www.sencha.com/products/jsbuilder/">JSBuilder2</a></li>
<li><a href="http://developer.yahoo.com/yui/compressor/">YUI Compressor</a>
<li><a href="http://ant.apache.org/">Apache Ant</a></li>
<li><a href="http://www.eclipse.org/">Eclipse</a></li>
</ul>  

<h3>License</h3>
<a href="http://gplv3.fsf.org/">GPLv3</a>

<h3>Source Code</h3>
<a href="http://code.google.com/p/extjs-bookmarklets/source/browse/trunk/">http://code.google.com/p/extjs-bookmarklets/source/browse/trunk/</a>

<h3>Author</h3>
Leif Eriksson<br/>
<a href="mailto:leif@leif.fi">leif@leif.fi</a><br/>
<a href="http://leif.fi/">http://www.leif.fi/</a>
</body>

</html>